import { http } from '@/utils/http'

/**
 * 获取当前账号通知消息
 */
export const getNoticeList = (params) => {
  return http({
    method: 'POST',
    url: '/V5/notice/userList',
    data: params,
  })
}

/**
 * 消息详情
 */
export const getNoticeDetail = (params) => {
  return http({
    method: 'POST',
    url: '/V5/notice/userNoticeDetail',
    data: params,
  })
}

/**
 * 获取当前账号未读消息数
 */
export const getUnreadList = (params) => {
  return http({
    method: 'POST',
    url: '/V5/notice/userUnread',
    data: params,
  })
}

/**
 * 全部已读
 */
export const readAllNotice = (params) => {
  return http({
    method: 'POST',
    url: '/V5/notice/readAll',
    data: params,
  })
}

/**
 * 阅读消息
 */
export const readNotice = (params) => {
  return http({
    method: 'POST',
    url: '/V5/notice/read',
    data: params,
  })
}
